local blaze = require "blaze"
local base = blaze.logging

local cache = {}

local M = {}

function M.get(name)
    cache[name] = true
    return base.get(name)
end

function M.release()
    for name, _ in pairs(cache) do
        base.put(name)
    end
end

M.log = M.get("gamelib")

return M